package pro.spring.inter;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import pro.spring.model.Messages;

public interface MessagesMapper {
    int deleteByPrimaryKey(Integer meId);

    int insert(Messages record);

    int insertSelective(Messages record);

    Messages selectByPrimaryKey(Integer meId);

    int updateByPrimaryKeySelective(Messages record);

    int updateByPrimaryKey(Messages record);
    
    int selectCountByInid(@Param("informationInId")Integer informationInId);
    //得到总条数
    Integer selectCount();
    
    //分页查询
    List<Messages> selectListPage(@Param("offset")Integer offset,@Param("pagesize")Integer pagesize);
    
    //留言查询
    List<Messages>selectByInid(@Param("informationInId")Integer informationInId,@Param("offset")Integer offset,@Param("pagesize")Integer pagesize);
}